package com.pojo;

/**
 * SysCodeDtlId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class SysCodeDtlId implements java.io.Serializable {

	// Fields

	private String codeType;
	private String code;

	// Constructors

	/** default constructor */
	public SysCodeDtlId() {
	}

	/** full constructor */
	public SysCodeDtlId(String codeType, String code) {
		this.codeType = codeType;
		this.code = code;
	}

	// Property accessors

	public String getCodeType() {
		return this.codeType;
	}

	public void setCodeType(String codeType) {
		this.codeType = codeType;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof SysCodeDtlId))
			return false;
		SysCodeDtlId castOther = (SysCodeDtlId) other;

		return ((this.getCodeType() == castOther.getCodeType()) || (this
				.getCodeType() != null
				&& castOther.getCodeType() != null && this.getCodeType()
				.equals(castOther.getCodeType())))
				&& ((this.getCode() == castOther.getCode()) || (this.getCode() != null
						&& castOther.getCode() != null && this.getCode()
						.equals(castOther.getCode())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getCodeType() == null ? 0 : this.getCodeType().hashCode());
		result = 37 * result
				+ (getCode() == null ? 0 : this.getCode().hashCode());
		return result;
	}

}